package CF.DIY;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Scanner;
//long
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        for (int i = 0; i < n; i++) {
            long len = sc.nextLong();
            ArrayList<Long> list = new ArrayList<>();
            HashMap<Long, Long> map = new HashMap<>();
            for (int j = 0; j < len; j++) {
                long a = sc.nextLong();
                map.put(a, map.getOrDefault(a, 0L) + 1);
                if(map.get(a) % 2 == 0) {
                    list.add(a);
                }
            }
            if(list.size() < 4) {
                System.out.println("NO");
                continue;
            }
            Arrays.sort(list.toArray());
            System.out.println("YES");
            System.out.println(list.get(0) + " " + list.get(list.size() - 1) + " " + list.get(0) + " " + list.get(1) + " " + list.get(list.size() - 2) + " " + list.get(1) + " " + list.get(list.size() - 2) + " " + list.get(list.size() - 1));
        }
    }
}
